package com.sservice.service.service;

import com.sservice.commonBusiness.e.DataR;
import com.sservice.model.entity.UserWx;
import com.sservice.model.vo.UserWxVo;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */

public interface IUserWxService {
    UserWx getLogined(String skey);

    /**
     * 设置会员等级关键因子
     *
     * @return
     */
    void setFactors(Integer userId, Integer factor1, Integer factor2, Integer factor3, Integer factor4);

    /**
     * 会员等级
     *
     * @param userId
     */
    void upgradeLevel(Integer userId);

    int deleteByPrimaryKey(Integer id);

    int insert(UserWx record);

    int insertSelective(UserWx record);

    UserWx selectByPrimaryKey(Integer id);

    List<UserWxVo> queryCommonByPage(UserWxVo record);

    int countCommonByPage(UserWxVo id);

    UserWx selectByOpenid(String openid);

    UserWx selectByUnionid(UserWx record);

    int updateByPrimaryKeySelective(UserWx record);

    int updateByPrimaryKey(UserWx record);

    /**
     * 根据关系查询
     * @param record
     * @return
     */
    List<UserWxVo> queryWithDr(DataR record);
}
